﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<%@ Import Namespace="yibo.Models" %>

<asp:Content ID="ShowArticleTitle" ContentPlaceHolderID="TitleContent" runat="server">
    show article
</asp:Content>

<asp:Content ID="ShowArticleContent" ContentPlaceHolderID="MainContent" runat="server">
    <%
        int index;
        article myArticle = new article();
        if (Session["articleList"] != null && ViewData["articleIndex"] != null)
        {
            index = (int)ViewData["articleIndex"];
            myArticle = ((IQueryable<article>)Session["articleList"]).ToList()[index];
        }
        else
        {
            myArticle = (article)ViewData["myArticle"];
        }
    %>
    <table style="width:100%;">
        <tr>
            <td style="width: 532px">
                <strong>
                标题：<%=myArticle.title%>
                </strong><input id="Hidden1" type="hidden" />&nbsp;</td>
            <td>
                <strong></strong>
                <input id="Button16" type="button" value="关注" /></td>
        </tr>
        <tr>
            <td style="width: 532px">
                <strong>关联商品：<span class="style6"> 
                </span></strong></td>
            <td>
                <input id="Button17" onclick="javascript:window.location.href='/MyArticles/ReshipArticle'" type="button" value="转载" /></td>
        </tr>
        <tr>
            <td style="width: 532px">
                <strong>内容：</strong></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 532px">
                <%=myArticle.articleContent %>
                </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right">
                分享至：
                <script src="../../Scripts/Share/qzoneShare.js" type="text/javascript"></script>
                <script src="../../Scripts/Share/weibo.js" type="text/javascript"></script>
                <script src="../../Scripts/Share/renren.js" type="text/javascript"></script>
                <script type="text/javascript">                    qzoneShare();</script>
                <script type="text/javascript">                    weibo();</script>
                <script type="text/javascript">                    renren();</script></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 532px">
                <strong>评论：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                </strong></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 532px">
                <textarea id="TextArea3" name="S3" style="height: 74px; width: 564px"></textarea></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 532px">
                &nbsp;&nbsp;<input id="Button18" onclick="javascript:window.location.href='/MyArticles/AnswerArticle'" type="button" value="回复" /></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 532px">
                <span class="style6"><strong>发表评论：</strong></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 532px">
                <textarea id="TextArea2" name="S2" rows="2" style="width: 561px"></textarea></td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 532px;" class="style7">
                <input id="Button1" onclick="javascript:window.location.href='/MyArticles/ShowArticle'" type="button" value="发布" /></td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
</asp:Content>
